Skip to main content
function
required
The callback function to register.
Due to the nature of RakNet, in order for this function to do anything, you need to enable it in the UI settings. Bans may occur from using this.

Example

This example prints the data of every packet sent.

Desync Example

This example is a widely known replication desync that registers a send hook that modifies ID_TIMESTAMP packets before they are sent. This example may be outdated as of 07/27/26